package com.huangpeng.designmodel.builder;

import com.huangpeng.designmodel.entity.Receipt;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author huangpeng
 * @Title 模拟一个回执生成器
 * @Package
 * @Date 2020/10/21 11:30
 * @Description 模拟一个回执生成器
 * @Version 1.0
 */
public class ReceiptBuilder {
    public static List<Receipt> generateReceiptList(){
        //直接模拟一堆回执对象
        List<Receipt> receiptList = new ArrayList<>();
        receiptList.add(new Receipt("MS0001","MT2101","我是MT2101回执"));
        receiptList.add(new Receipt("MS0002","MT1101","我是MT1101回执"));
        receiptList.add(new Receipt("MS0003","MT8104","我是MT8104回执"));
        receiptList.add(new Receipt("MS0004","MT9999","我是MT9999回执"));
        receiptList.add(new Receipt("MS0005","MT7103","我是MT7103回执"));
        //...
        return receiptList;
    }
}
